package com.mezizy.ifaner.global.com.mezizy.ifaner.web.data;

import java.io.Serializable;

/**
 * Created by Zizy on 15/2/11.
 */
public class Dish  implements Serializable{
   int dishMonthSale;
    String dishesId;
    String merchantId;
    String dishesState;
    String dishesName;
    float dishesPrice;
    String dishesDiscount;
    String dishesIconUrl;
    float total ;
    private int cartQuantity=0;

    public int getDishMonthSale() {
        return dishMonthSale;
    }

    public void setDishMonthSale(int dishMonthSale) {
        this.dishMonthSale = dishMonthSale;
    }

    public void setDishesId(String dishesId) {
        this.dishesId = dishesId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public void setDishesState(String dishesState) {
        this.dishesState = dishesState;
    }

    public void setDishesName(String dishesName) {
        this.dishesName = dishesName;
    }

    public void setDishesPrice(float dishesPrice) {
        this.dishesPrice = dishesPrice;
    }

    public void setDishesDiscount(String dishesDiscount) {
        this.dishesDiscount = dishesDiscount;
    }

    public void setDishesIconUrl(String dishesIconUrl) {
        this.dishesIconUrl = dishesIconUrl;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }


    public int getCartQuantity() {
        return cartQuantity;
    }

    public void setCartQuantity(int cartQuantity) {
        this.cartQuantity = cartQuantity;
    }
    public void setCartQuantity() {
        this.cartQuantity = cartQuantity+1;
    }
    public Dish(String dishesId, String merchantId) {
        this.dishesId = dishesId;
        this.merchantId = merchantId;
    }

    public Dish(String dishesId, String merchantId, float dishesPrice) {
        this.dishesId = dishesId;
        this.merchantId = merchantId;
        this.dishesPrice = dishesPrice;
    }


    public Dish(String dishesId, String merchantId, float total, int cartQuantity,String  dishesName,float dishesPrice) {
        this.dishesId = dishesId;
        this.merchantId = merchantId;
        this.total = total;
        this.cartQuantity = cartQuantity;
        this.dishesName = dishesName;
        this.dishesPrice=dishesPrice;

    }

    public String getDishesId() {
        return dishesId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public String getDishesState() {
        return dishesState;
    }

    public String getDishesName() {
        return dishesName;
    }

    public float getDishesPrice() {
        return dishesPrice;
    }

    public String getDishesDiscount() {
        return dishesDiscount;
    }

    public String getDishesIconUrl() {
        return dishesIconUrl;
    }
}
